#include<iostream>

using namespace std;

void swap01(int a , int b)
{
    int temp = a;
    a = b;
    b = temp;
    cout << "swap01 a = " << a << endl;
    cout << "swap01 b = " << b << endl;
}

void swap02(int *pa , int *pb)
{
    int temp = *pa;
    *pa = *pb;
    *pb = temp;
}

int main()
{
    int a = 10;
    int b = 20;
    swap01(a,b);
    cout << "a = " << a << endl;
    cout << "b = " << b << endl;

    int a1 = 30;
    int b1 = 40;
    swap02(&a1,&b1);
    cout << "a1 = " << a1 << endl;
    cout << "b1 = " << b1 << endl;
    
    return 0;
    
}